package spe.ui.editor.policy;

import org.eclipse.gef.EditPart;
import org.eclipse.gef.EditPolicy;
import org.eclipse.gef.Request;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.GroupRequest;

import spe.model.notation.Link;
import spe.ui.editor.command.LinkDeleteCommand;

public class SPELinkEditPolicy extends org.eclipse.gef.editpolicies.ConnectionEditPolicy 
{
	@Override
	protected Command getDeleteCommand(GroupRequest arg0)
	{
		LinkDeleteCommand command = new LinkDeleteCommand();
		command.setLink((Link)getHost().getModel());
		return command;
	}
}
